/*
 * @Date: 2023-03-17 10:36:42
 * @LastEditTime: 2023-03-21 11:47:19
 * @FilePath: /prepaid-refill/src/router/module/page.ts
 * 介绍:
 */
import type { RouteRecordRaw } from "vue-router";
import { NavRouter, BaseRouter } from "../interface";
import { t } from "@@/hooks/useI18n";

const routes: Array<RouteRecordRaw & NavRouter & BaseRouter> = [
  {
    name: "topUpPhone",
    path: "/topUpPhone",
    component: () => import("@@/views/topUpPhone/topUpPhone.vue"),
    meta: {
      title: t("chong-zhi-zhong-xing"),
    },
  },
  {
    name: "market",
    path: "/market",
    component: () => import("@@/views/market/market.vue"),
    meta: {
      title: t("shi-zhi-da-ting"),
    },
  },
  {
    name: "team",
    path: "/team",
    component: () => import("@@/views/team/team.vue"),
    meta: {
      title: t("wo-de-tuan-dui"),
    },
  },
  {
    name: "incomeDetail",
    path: "/incomeDetail",
    component: () => import("@@/views/incomeDetail/incomeDetail.vue"),
    meta: {
      title: t("shou-yi-ming-xi"),
    },
  },
  {
    name: "withdraw",
    path: "/withdraw",
    component: () => import("@@/views/withdraw/withdraw.vue"),
    meta: {
      title: t("shou-yi-ming-xi"),
    },
  },
];
export default routes;
